import request from '@/utils/request'

// 查询学生上课列表
export function listCourseclassStudent(query) {
  return request({
    url: '/score/CourseclassStudent/list',
    method: 'get',
    params: query
  })
}

// 查询学生上课详细
export function getCourseclassStudent(studentId) {
  return request({
    url: '/score/CourseclassStudent/' + studentId,
    method: 'get'
  })
}

// 新增学生上课
export function addCourseclassStudent(data) {
  return request({
    url: '/score/CourseclassStudent',
    method: 'post',
    data: data
  })
}

// 修改学生上课
export function updateCourseclassStudent(data) {
  return request({
    url: '/score/CourseclassStudent',
    method: 'put',
    data: data
  })
}

// 删除学生上课
export function delCourseclassStudent(studentId) {
  return request({
    url: '/score/CourseclassStudent/' + studentId,
    method: 'delete'
  })
}
